//Code : //PROGRAM FOR BOOK SHOP USING POINTERS TO BASE CLASS //By FutureSoft (www.FutureSoft.yolasite.com) //Title SHOP (PURCHASER) details of book (Mini Project) #include #include class book { char name[30]; long int tel; public: void read() { cout<<" name:" ; cin>>name; cout<>tel; } void disp() { cout<<" PURCHASER DETAILS : "; cout<<" Name : "<>bname; cout<<" ISBN NO. : "; cin>>isbn; cout<<" Price of Book : Rs."; cin>>price; } void disp() { cout<<" BOOK DETAILS :"; cout<<" Book-Name :" <read(); (*ptr).disp(); ((shop *)ptr)->disp(); getch(); }